<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <title>Document</title>
</head>
<body>
          <p>什么是javasc</p> 
          <p>javasc是一门功能强大的编程语言</p>
          <h1>一起来学习Javasc程序设计</h1>
            <hr>
            <p>javasc发展史</p>
            <button id="bu">删除所有的p元素</button>
     <script>
           $(function()
           {
               $("#bu").bind("click",function()
               {
                   $("p").remove()
               })
           })
     </script>

</body>
</html>